const TokenKey = 'token'
const UserKey = 'staff'
const UserName = 'username';
export function getToken() {
  return localStorage.getItem(TokenKey)
}

export function setToken(token: string) {
  return localStorage.setItem(TokenKey, token)
}

export function removeToken() {
  return localStorage.setItem(TokenKey, '')
}

export function getUsername() {
  return localStorage.getItem(UserName)
}

export function setUsername(username: string) {
  return localStorage.setItem(UserName, username)
}

export function getStaff() {
  return localStorage.getItem(UserKey)
}

export function setStaff(staff: string) {
  return localStorage.setItem(UserKey, staff)
}

export function removeStaff() {
  return localStorage.setItem(UserKey, '')
}